<!-- Modal -->
<div id="frm-post-popup" class="white-popup" style="max-width: 745px">
    <div class="weibo_post_box">
        <h2>上传封面</h2>
        <div class="aline" style="margin-bottom: 10px"></div>
        <div class="row">
            <div class="col-xs-12">
                {:hook('upload_crop')}
            </div>
        </div>
        <button title="Close (Esc)" type="button" class="mfp-close" style="color: #333;">×</button>
    </div>
</div>
<script>

    var upload_crop ={
        cropSuccess:function(a){
            $('.upload-img-box').html('<div class="upload-pre-item"><img style="width: 100%" src="' + a.info.path + '"/></div>')
            $('input[name=cover_id]').val(a.info.id);
        }
    }

</script>

<!-- /.modal -->

